#include "Buffer.h"
#include "../platform/opengl/GlBuffer.h"

namespace lazy {
    Ref<VertexBuffer> VertexBuffer::Create(uint32_t size) {
        return CreateRef<GLVertexBuffer>(size);
    }

    Ref<VertexBuffer> VertexBuffer::Create(float *vertices, uint32_t size) {
        return CreateRef<GLVertexBuffer>(vertices, size);
    }

    Ref<IndexBuffer> IndexBuffer::Create(uint32_t *indices, uint32_t count) {
        return CreateRef<GLIndexBuffer>(indices, count);
    }

    Ref<UniformBuffer> UniformBuffer::Create(uint32_t size, uint32_t bindging) {
        return CreateRef<GLUniformBuffer>(size, bindging);
    }
} // lazy